<!DOCTYPE html>
<html lang="zh-cmn-Hans-CN">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0">
	<title>欢迎页面</title>
	<style>
		#app{
			text-align: center;
			padding: 10px;
		}
	</style>
</head>
<body>
	
	<div id="app">
		<fieldset>
			<legend>欢 迎 您</legend>
			<p>
				<label for="txtFirstName">姓：</label>
				<input type="text" id="txtFirstName" v-model="firstName"/>
			</p>
			<p>
				<label for="txtLastName">名：</label>
				<input type="text" id="txtLastName" v-model="lastName"/>
			</p>
			<p>
				欢迎您！{{firstName+lastName}}<!-- 字符串拼接-->
			</p>
		</fieldset>
	</div>
	<script src="./js/vue.min.js"></script>
	<script>
		var user={
			firstName:"白",
			lastName:"墨"
		}
		var vm=new Vue({
			el:"#app",
			data:user
		});
	</script>
</body>
</html>